import React from 'react'
import './Info.scss'
export default function Info({ own, message }) {
    return (
        <div className={own ? 'info own' : 'info'} >
            <div className="info_top">
                <img src="/张杰.jpg" alt="" style={{ display: own ? "none" : "inline-block" }} />
                <p className='info_text'>
                    {message.text}
                </p>
                <img src="/张杰.jpg" alt="" style={{ display: own ? " inline-block" : "none" }} />
            </div>
        </div >
    )
}
